<template>
    <!--常规-->
    <div id="RoutineDetails">
        <v-details :detailData="inputData" :inputConfig="inputConfig"></v-details>
    </div>
</template>

<script>
    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        mixins: [baseMixin],
        props: {
            inputData: {
                type: Object
            }
        },
        name: "RoutineDetails",
        data() {
            return {
                inputConfig: [
                    [
                        {
                            type: "input",
                            label: this.$t('in.externalreceiptkey2'),
                            disabled: true,
                            props: "externalreceiptkey2"
                        },
                        {
                            type: "input",
                            label: this.$t('in.warehousereference'),
                            disabled: false,
                            props: "warehousereference"
                        },
                        {
                            type: "input",
                            label: this.$t('in.containerkey'),
                            disabled: false,
                            props: "containerkey"
                        },
                        {
                            type: "select",
                            label: this.$t('in.allowautoreceipt'),
                            disabled: false,
                            props: "allowautoreceipt",
                            options: this.getOptions("codelkup/YESNO")
                        },
                        {
                            type: "select",
                            label: this.$t('in.trackinventoryby'),
                            disabled: true,
                            props: "trackinventoryby",
                            options: this.getOptions("codelkup/TRACKINV")
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('in.externreceiptkey'),
                            disabled: !this.$store.state.newFlag,
                            props: "externreceiptkey"
                        },
                        {
                            type: "input",
                            label: this.$t('in.packingslipnumber'),
                            disabled: false,
                            props: "packingslipnumber"
                        },
                        {
                            type: "input",
                            label: this.$t('in.rma'),
                            disabled: false,
                            props: "rma"
                        },
                        {
                            type: "input",
                            label: this.$t('in.advicedate'),
                            disabled: false,
                            props: "advicenumber"
                        },
                        {
                            type: "date",
                            label: this.$t('in.advicedate'),
                            disabled: false,
                            props: "advicedate"
                        },
                        {
                            type: "date",
                            label: this.$t('in.effectivedate'),
                            disabled: false,
                            props: "effectivedate"
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: "UDF1",
                            disabled: false,
                            props: "susr1"
                        },
                        {
                            type: "input",
                            label: "UDF2",
                            disabled: false,
                            props: "susr2"
                        },
                        {
                            type: "input",
                            label: "UDF3",
                            disabled: false,
                            props: "susr3"
                        },
                        {
                            type: "input",
                            label: "UDF4",
                            disabled: false,
                            props: "susr4"
                        },
                        {
                            type: "input",
                            label: "UDF5",
                            disabled: false,
                            props: "susr5"
                        }
                    ]
                ],
            }
        },
        methods: {},
        mounted() {
        },
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>

